const state = () => {
  return {
    // 用户信息
    profile: {
      id: '', // 用户id
      avatar: '', // 头像
      nickname: '', // 昵称
      account: '', // 账号
      mobile: '', // 手机号
      token: ''
    },
    redirectUrl: '/'
  }
}

const mutations = {
  setUser (state, data) {
    state.profile = data
  },
  setRedirectUrl (state, url) {
    state.redirectUrl = url
  }
}
const actions = {}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
